//
//  ViewController.m
//  EdgeInsetsButton
//
//  Created by Lucy_Lee on 2016/9/30.
//  Copyright © 2016年 Lucy_Lee. All rights reserved.
//

#import "ViewController.h"
#import "HWEdgeInsetsButton.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    for (NSInteger i = 0; i < 4; i++) {
        HWEdgeInsetsButton * button = [HWEdgeInsetsButton buttonWithType:UIButtonTypeCustom];
    
        button.buttonStyle = i;
        button.frame = CGRectMake(100, 100 + 110 * i, 90, 90);
        [button setImage:[UIImage imageNamed:@"share_sns"] forState:UIControlStateNormal];
        [button setTitle:@"微信" forState:UIControlStateNormal];
        [button setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
        button.titleLabel.font = [UIFont systemFontOfSize:15.0f];
        button.controlSpace = 5.0f;
        [self.view addSubview:button];
    }
    
    
    
    // Do any additional setup after loading the view, typically from a nib.
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
